<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <link rel="stylesheet" href="../css/bootstrap.min.css">
  <link rel="stylesheet" href="../css/bootstrap-theme.min.css">
  <link rel="stylesheet" href="../css/dashboard.css">

  <title>pyweb</title>
  <script>
    function showRight(url)
    {
      $.ajax({
        type: "post",
        data: {},
        url: url,
        dataType: "html",
        success: function (data) {
            $("#right").html(data);
        },
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            alert(errorThrown);
        }
    });
    }
    $(function () {
      $('#left a').click(function (e) {
        $(this).tab('show');
      })

      showRight('/demo/index.html');
    })
  </script>
</head>

<body>

  <div id="header">
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"
            aria-controls="navbar">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
          <a class="navbar-brand" href="#">PYTHON WEB开发框架</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
              <li><a href="javascript:getStrategysAdmin();">顶部菜单一</a></li>
            <li>
              <a class="dropdown-toggle" data-toggle="dropdown" href="#">顶部菜单二<span class="caret"></span></a>
              <ul class="dropdown-menu">
                  <li><a href="javascript:getStrategys();"><i class="glyphicon glyphicon-file"></i>&nbsp;菜单项A</a></li>
                  <li><a href="javascript:getStrategysStat();"><i class="glyphicon glyphicon-th-large"></i>&nbsp;菜单项B</a></li>
              </ul>
            </li>
            <li><a href="#">顶部菜单三</a></li>
            <li><a href="#">顶部菜单四</a></li>
            <li><a href="#">顶部菜单五</a></li>
          </ul>
          <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="Search...">
          </form>
        </div>
      </div>
    </nav>
  </div>

  <div id="main" style="height:100%;">
    <div class="container-fluid">
      <div class="sidebar" id="left">
        <ul class="nav nav-sidebar">
          <li class="active"><a href="#"><i class="glyphicon glyphicon-book"></i>&nbsp;左侧导航</a></li>
          <li><a href="javascript:"><i class="glyphicon glyphicon-chevron-right"></i>&nbsp;DEMO</a></li>
          <li><a href="javascript:"><i class="glyphicon glyphicon-chevron-right"></i>&nbsp;导航2</a></li>
          <li><a href="javascript:"><i class="glyphicon glyphicon-chevron-right"></i>&nbsp;导航3</a></li>
        </ul>
      </div>
      <div class="main" id="right">
          <iframe name="rightFrm" id="rightFrm" width="100%" height="100%" src="/demo/index.html" frameborder="0" scrolling="auto" ></iframe>
      </div>
    </div>
  </div>

  <div id="footer"></div>

    <script src="../js/jquery.min.js "></script>
    <script src="../js/bootstrap.min.js "></script>
   </body>
 </html>